﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 8]> <html lang="zh-CN" class="ie8"> <![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml">
	<html lang="zh-CN">

	<head>
		<meta charset="utf-8" />
		<title>{$ticket_types['name']}_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="{$ticket_types['keywords']}" />
		<meta name="Description" content="{$ticket_types['description']}" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<tc_include file="Public:head" />
		<style type="text/css">
			input::-webkit-outer-spin-button,
			input::-webkit-inner-spin-button {
			  -webkit-appearance: none;
			}
			input[type="number"]{
			  -moz-appearance: textfield;
			}
			.u-flyer{display: block;width: 50px;height: 50px;border-radius: 50px;position: fixed;z-index: 9999;} 
		</style>
		
	</head>

	<body class="pace-done">
		<tc_include file="Public:nav" />

		<!-- 缓载图片 -->
		<div class="blank"></div>
		<div class="w1210">
			<!--当前位置，面包屑-->
			<div class="breadcrumb clearfix">
				<foreach name="bread" item="v">
					<neq name="key" value="0"><span class="crumbs-arrow">&gt;</span></neq>	
					<a href="{$v.href}" class="index">{$v.name}</a>
				</foreach>
			</div>
		
				<!--筛选条件-->
				<div class="search-wrap" id="attr-list-ul" style="border-top: none;">
					<php>if($new_search_array||$brand_sx||$price_sx){</php>
					<dl class="selected-attr-dl" style="border-bottom: none;">
						<dt>已选条件：</dt>
						<dd class="moredd">
							<a href="{:U('list/index',array('id'=>$_GET['id'],'delsearchall'=>1))}">全部撤销</a>
						</dd>
						<dd>
							<ul class="selected-attr">
								<php>if($brand_sx){</php>
									<li>
										<a href="{:U('list/index',array('id'=>$_GET['id'],'delbrand'=>$brand_sx['id']))}">品牌：<b class="color">{$brand_sx['name']}</b><i>×</i></a>
									</li>
								<php>}</php>
								<foreach name="new_search_array" item="v">
								<li>
									<a href="{:U('list/index',array('id'=>$_GET['id'],'delsearch'=>$key))}">{$ticket_atr[$key]['title']}：<b class="color">{$v}</b><i>×</i></a>
								</li>
								</foreach>
								<php>if($price_sx){</php>
									<li>
										<a href="{:U('list/index',array('id'=>$_GET['id'],'delprice'=>$price_sx))}">价格：<b class="color">{$price_sx}</b><i>×</i></a>
									</li>
								<php>}</php>
								
							</ul>
						</dd>
					</dl>
					<php>}</php>
					<!-- 品牌 -->
					<php>if(!$brand_sx){</php>
					<dl  id="attr-group-dl-brand">
						<dt>品牌：</dt>
						<dd>
							<div id="brand-abox-father">
								<ul id="brand-abox" class="brand-abox-imgul">
									<!-- 品牌选中状态为brand-seled样式 -->
									<foreach name="brand_array" item="v">
									<li class="brand" title="{$v.name}" >
										<a href="{:U('list/index',array('id'=>$_GET['id'],'brand'=>$v['id']))}" >
											<img src="{$v.image}" style="display: block;"><span class="color">{$v.name}</span>
											<i></i>
										</a>
									</li>
									</foreach>
								</ul>
							</div>
						</dd>
					</dl>
					<php>}</php>
					<!-- //筛选条件 -->
					<foreach name="ticket_atr" item="vo" key="k">
						<php> if(!in_array($k,$keys)){</php>
						<dl>
							<dt>{$vo.title}：</dt>
							<dd class="moredd">&nbsp;</dd>
							<dd>
								<ul>
									<foreach name="vo['content']" item="v">
									<li>
										<PHP>
											$keyname=$k."_".$v;
											$keyname=urlencode($keyname);
										</PHP>
										<a href="{:U('list/index',array('id'=>$_GET['id'],'search'=>$keyname))}" data-go="{$k}_{$v}">{$v}</a>
									</li>
									</foreach>	
								</ul>
							</dd>
						</dl>
						<php> }</php>
					</foreach>
					<php>if(!$price_sx){</php>
					<dl class="">
						<dt>价格：</dt>
						<dd class="moredd">&nbsp;</dd>
						<dd>
							<ul>
								<foreach name="price_array" item="v">
									<li>
										<a href="{:U('list/index',array('id'=>$_GET['id'],'price'=>$v))}" >{$v}</a>
									</li>
								</foreach>
								
								
								<li>
									<form action="{:U('list/index',array('id'=>$_GET['id']))}" id="price_sub" method="get">
										<input name="price_min" id="price_min" value="" class="input-txt" autocomplete="off" type="text" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
										<i></i>
										<input name="price_max" id="price_max" value="" class="input-txt" autocomplete="off" type="text" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
										<a class="select-button" href="javascript:void(0);" >确定</a>
									</form>
								</li>
							</ul>
						</dd>
					</dl>
					<php>}</php>
				</div>

		

			<div class="blank15"></div>
			<div class="content-wrap category-wrap clearfix">
				<!--左侧内容-->
				<div class="aside">

					<div class="aside-inner">
						<!--销量排行榜-->

						<div class="aside-con">
							<h2 class="aside-tit">销量排行榜</h2>
							<ul class="aside-list">
								<foreach name="top_sale" item="vo">
									<li>
										<div class="p-img">
											<a target="_blank" title="{$vo.title}" href="{:U('shop/index',array('id'=>$vo['id']))}" style="">
												<img class="lazy" alt="{$vo.title}" src="{$vo.image}"  />
											</a>
										</div>
										<div class="p-name">
											<a target="_blank" title="{$vo.title}" href="{:U('shop/index',array('id'=>$vo['id']))}">{$vo.title} </a>
										</div>
										<div class="p-price">
											<span class="sale-price second-color">￥{$vo.price}</span>
											<span class="sale-num">销量：{$vo.sale_num}</span>
										</div>
									</li>
								</foreach>
							</ul>
						</div>

					</div>
				</div>
				<!--右侧内容-->
				<div class="main ">
					<div class="" id="filter">
						<!--排序-->
						<form method="GET" name="listform" action="">
							<div class="fore1">
								<dl class="order">

									<dd class="first <eq name='order' value='0'> curr</eq>">
										<a href="{:U('list/index',array('id'=>$_GET['id'],'order'=>0))}" >综合<b class="icon-order-DESCending"></b></a>
									</dd>
									<dd class="<eq name='order' value='1'> curr</eq>">
										<a href="{:U('list/index',array('id'=>$_GET['id'],'order'=>1))}" >销量<b class="icon-order-DESCending"></b></a>
									</dd>
									<dd class="<eq name='order' value='2'> curr</eq>">
										<a href="{:U('list/index',array('id'=>$_GET['id'],'order'=>2))}" >价格<b class="icon-order-DESCending"></b></a>
									</dd>
									

								</dl>
								<div class="pagin">
									<php>
										if($_GET['p']==null){
											$_GET['p']=1;
										}
										$next_p=$_GET['p']+1;
										$prve_p=$_GET['p']-1;
									</php>
									<php>if($prve_p>0){</php>
										<a class="prev" href="{:U('list/index',array('id'=>$_GET['id'],'p'=>$prve_p))}">
											<span class="icon prev-disabled"></span>
										</a>
									<php>}else{</php>
										<a class="prev disabled" href="javascript:;">
											<span class="icon prev-disabled"></span>
										</a>
									<php>}</php>
									
								

									<span class="text"><font class="color">{$_GET['p']}</font>/{$count_page}</span>
									<php>if($_GET['p']>=$count_page){</php>
										<a class="next disabled" href="javascript:;">
											<span class="icon next-disabled"></span>
										</a>
									<php>}else{</php>
										<a class="next" href="{:U('list/index',array('id'=>$_GET['id'],'p'=>$next_p))}">
											<span class="icon next-disabled"></span>
										</a>
									<php>}</php>
									

								</div>
								<div class="total">
									共
									<span class="color">{$count}</span> 个商品
								</div>
							</div>

						</form>
					</div>
					<!--主体商品内容展示-->

					<form name="compareForm" action="compare.php" method="post" onsubmit="" id="table_list">

						<ul class="list-grid clearfix">
							<foreach name="shop_list" item="vo" key="k">
							<!-- 如果是4的整数倍，给 li 标签添加class="last"值，即class="item last" -->
								<php>$rs=shop_type($vo['id']);</php>
						<php> if(($k+1)%4==0){</php>
							<li class="item last">
						<php>}else{</php>
							<li class="item ">
						<php>}</php>
							<div class="item-con">
								<php>if($rs['tuan']==1){</php><img src="/static/images/tuan.png" alt="此商品参与团购" style="position: absolute;z-index: 999;width: auto; height: auto;left:6px;"><php>}</php>
									<div class="item-pic">
										<a href="{:U('shop/index',array('id'=>$vo['id']))}" title="{$vo['title']}" target="_blank" >
											<img class="lazy" alt="" src="{$vo['image']}"  />

										</a>
									</div>

									<!-- 展示形式 -->
									<div class="img-scroll">
										<a href="javascript:;" class="img-prev">&lt;</a>
										<a href="javascript:;" class="img-next">&gt;</a>
										<div class="img-wrap">
											<ul class="img-main" style="left: 0px;">
												<php>if($vo['shop_sku']['SKU_Style']==null){</php>
													<li class="img-item">
														<a href="javascript:;" title="">
															<img class="lazy" width="25" height="25" alt="{$vo['title']}" src="{$vo['image']}"  data-src="{$vo['image']}" />
														</a>
													</li>
												<php>}</php>
												<foreach name="vo['shop_sku']['SKU_Style']" item="v" >	
													<li class="img-item">
														<a href="javascript:;" title="">
															<img class="lazy" width="25" height="25" alt="{$v.defaultValue}" src="{$v.SKU_ThumbImg}"  data-src="{$v.SKU_ThumbImg_M}" />
														</a>
													</li>
												</foreach>
											</ul>
										</div>
									</div>

									<div class="item-info">
										<div class="item-price">
											<em class="sale-price second-color">￥{$vo['price']}</em>

											<em class="sale-count">已售{$vo['sale_num']}件</em>

										</div>
										<div class="item-name">
											<a href="{:U('shop/index',array('id'=>$vo['id']))}" target="_blank" title="{$vo['title']}"><php>if($rs['coupon']==1){</php><em style="background-image: url('/static/images/yhq.png');padding: 0 5px 0 11px;color: #fff;background-size: 100% 100%;margin-right: 5px;">优惠券</em><php>}</php>{$vo['title']}</a>
										</div>
										<div class="item-con-info">
											<div class="fl">
												<div class="item-operate">
													<php>
														if(session('user_id')){
															$u_id=session('user_id');
														}else{
															$u_id=0;
														}
													</php>
													<a href="javascript:;" onClick="toggleGoods({$vo['id']},{$u_id},this)" class="operate-btn collet-btn goods-collect" >
														<i></i>
														<span> 收藏 </span>
													</a>
													<a href="javascript:;" target="_blank" class="operate-btn comment-btn">
														<i></i>{$vo['evaluation_count']}
													</a>
												</div>
												<div class="item-shop">
													<a href="{:U('store/index',array('id'=>$vo['store_id']))}" target="_blank" title="{$vo['store_title']}">
														<span>{$vo['store_title']}</span>
													</a>
												</div>
											</div>
											<div class="fr">
												<div class="item-add-cart">

													<a href="javascript:void(0);" class="add-cart "  data-goods-id="{$vo['id']}"   data-image-url="{$vo['image']}" data-buy-enable="{$vo['num']}" style="background-image: url(__TMPL__Home/List/images/add-cart.jpg)" title="加入购物车"></a>

												</div>
											</div>
										</div>
									</div>

								</div>
							</li>
							</foreach>

						</ul>
						<style>
						.page-num a{ float: left;text-align: center;border: 1px solid #eee;height: 35px;line-height: 35px;}
						.page-num span{float: left;text-align: center;border: 1px solid #eee;height: 35px;line-height: 35px;width: 35px;margin: 0 8px 0 3px;background: red;color: #fff;}
						</style>
						<!--分页-->
						<div class="pull-right page-box">

							<div id="pagination" class="page">

								<div class="page-wrap fr">
									<div class="total">共{$count}条记录</div>
								</div>
								<div class="page-num fr">
									{$page}
								</div>
							</div>

						</div>

					</form>

					<!--对比栏-->
				</div>
			</div>
			<!--历史记录和猜你喜欢-->


		</div>
		<tc_include file="Public:footer" />
		<tc_include file="Public:right" />
		<script type="text/javascript" src="__TMPL__Home/List/js/cart.js"></script>
		<script type="text/javascript">
			function toggleGoods(shop_id,uid){
				if(uid==0){
					layer.msg('未登录！');
					setTimeout("self.location = '/user/login';",1000);
				}else{
					$.post('/user/collect', {
						id: shop_id,
						type: 1,
					}, function(result) {
						layer.msg(result.message);
					}, "json");

				}
			}
		</script>
	</body>

	</html>